#include #include #include using namespace std; void main() { string president; string presidentDates; string vicePresident; string vicePresidentDates; string junk; getline(cin, president,'('); getline(cin, presidentDates,')'); getline(cin,junk,'\t'); getline(cin, vicePresident,'('); getline(cin, vicePresidentDates,')'); getline(cin,junk); cout << president << endl; int start = atoi(presidentDates.substr(0,4).c_str()); cout << presidentDates.substr(0,4) << endl; cout << presidentDates.substr(5,4) << endl; cout << vicePresident << endl; cout << vicePresidentDates << endl; }